from django import forms
from django.forms import ModelForm
from models import ModelForForm

class ContactForm(forms.Form):
    subject = forms.CharField(max_length=100)
    message = forms.CharField()
    sender = forms.EmailField()
    cc_myself = forms.BooleanField(required=False)

class FormFromModel(ModelForm):
    class Meta:
        model = ModelForForm
        fields = ['name', 'hasmarry']

class CSSWidget(forms.TextInput):
    class Media:
        css = {'all':('pretty.css',)}
        js = ('a.js','b.js')